
public class LineString extends Curve {

	public LineString(Point[] p) {
		super(p);
		
		if(NumPoints() == 2)
			type = "Line";
		else
			type = "LineString";
	}
	
	public int NumPoints(){
		return super.points.length - 1;
	}
	
	public Point PointN(int n){
		if(super.points[n-1] != null)
			return super.points[n-1];
		else
			return null;
	}
}
